from selenium import webdriver
import time

class Page():
    # 初始化端口
    def __init__(self):
        port = 'http://192.168.75.147:90/'
        driver = webdriver.Chrome()
        driver.maximize_window()
        driver.implicitly_wait(10)
        driver.get(port)
        self.driver = driver

# 快照
def Qscreen(driver, expect, result):
    if result != expect:
        driver.save_screenshot('../Report/log/'+str(time.time()) + ".png")

